package com.neusoft.neuiotms.dcom.model.hn;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.jpa.model.AbstractModel;
import com.neusoft.bizcore.web.jpa.model.Comment;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "neuiot_inspection_health_task_attachment_hn")
@org.hibernate.annotations.Table(appliesTo = "neuiot_inspection_health_task_attachment_hn", comment = "海南定期健康巡检任务关联附件表")
public class HnInspectionHealthTaskAttachment extends AbstractModel {
    private static final long serialVersionUID = -3273611479926677180L;

    @Length(max = 1023, message = "附件fsId不能超过{max}位")
    @Column(length = 1023, nullable = true)
    @Comment("varchar(1023) NULL COMMENT '附件fsId'")
    private String fsId;

    @Length(max = 1023, message = "名称不能超过{max}位")
    @Column(length = 1023, nullable = true)
    @Comment("varchar(1023) NULL COMMENT '附件名称'")
    private String name;

    @ManyToOne
    private HnInspectionHealthTask task;
}
